package org.boyan.modules.cgform.converter.bc;

import java.util.HashMap;
import java.util.Map;
import org.boyan.common.util.oConvertUtils;
import org.boyan.modules.cgform.entity.OnlCgformField;
/**
 * @author: zhuxiaobao
 * @time: 2021/9/26 11:14
 */

public class a extends org.boyan.modules.cgform.converter.ac.a {
    private String f;

    public String getTreeText() {
        return this.f;
    }

    public void setTreeText(String treeText) {
        this.f = treeText;
    }

    public a(OnlCgformField paramOnlCgformField) {
        super("SYS_CATEGORY", "ID", "NAME");
        this.f = paramOnlCgformField.getDictText();
        this.b = paramOnlCgformField.getDbFieldName();
    }

    public Map<String, String> getConfig() {
        if (oConvertUtils.isEmpty(this.f)) {
            return null;
        }
        HashMap<Object, Object> hashMap = new HashMap<>();
        hashMap.put("treeText", this.f);
        hashMap.put("field", this.b);
        return (Map)hashMap;
    }
}
